package cn.minsh.lims.eoms.modules.app.service.impl;

import cn.minsh.lims.eoms.common.utils.PageUtils;
import cn.minsh.lims.eoms.common.utils.Query;
import cn.minsh.lims.eoms.modules.app.service.UserInspectionPlanScopeService;
import cn.minsh.lims.eoms.modules.app.dao.UserInspectionPlanScopeDao;
import cn.minsh.lims.eoms.modules.app.entity.UserInspectionPlanScopeEntity;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("userInspectionPlanScopeService")
public class UserInspectionPlanScopeServiceImpl extends ServiceImpl<UserInspectionPlanScopeDao, UserInspectionPlanScopeEntity> implements UserInspectionPlanScopeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserInspectionPlanScopeEntity> page = this.page(
                new Query<UserInspectionPlanScopeEntity>().getPage(params),
                new QueryWrapper<UserInspectionPlanScopeEntity>()
        );

        return new PageUtils(page);
    }

}